package com.jelly.config.shiro;

import org.apache.shiro.spring.LifecycleBeanPostProcessor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * <h4>功能:【提出Shiro生命周期处理器  防止在shiro配置文件中无法注入bean问题】【创建人：QIAOLIANG】</h4>
 *
 * @时间:2018/7/9 0009 9:19
 * @备注:<h4></h4>
 */
@Configuration
public class ShiroLifecycleBeanPostProcessorConfig {

    /**
     * Shiro生命周期处理器
     *
     * @return
     */
    @Bean
    public LifecycleBeanPostProcessor getLifecycleBeanPostProcessor() {
        return new LifecycleBeanPostProcessor();
    }

}